import React, {useState} from "react";
import './index.scss'
import CardList from "@/pages/radar/Events/DataView/cardview";
import TableList from "@/pages/radar/Events/DataView/listview/TableList";

const EventsListContent: React.FC<any> = (props) => {

  const [viewType, setViewType] = useState<string>('card')

  return (
    <>
      {viewType === 'card' && <CardList editable={props.editable}/>}
      {viewType !== 'card' && <TableList/>}
    </>
  )
}

export default EventsListContent
